package com.iwhalecloud.citybrain.flow.platform.manager.application.service.impl.task;

import com.alibaba.cola.dto.Response;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.iwhalecloud.citybrain.flow.platform.manager.application.common.enums.TaskNodeTypeEnum;
import com.iwhalecloud.citybrain.flow.platform.manager.application.service.UserTaskManageService;
import com.iwhalecloud.citybrain.flow.platform.manager.application.utils.StringUtils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
　　* @description: 同步会签节点信息给待办组件
　　* @author shenrm
　　* @date 2022/4/24 16:31
　　*/
@Slf4j
@Service
public class SyncMultiInstanceProcessTaskProcessor {

    @Autowired
    private UserTaskManageService userTaskManageService;

    @Autowired
    private EventExceptionHandler eventExceptionHandler;

    /**
     * 根据不同的场景更新同步第三方的流程实例或任务实例状态数据
     * @param proInstanceIds
     * @param taskIds
     * @param status
     * @param linkStatus
     * @param multiTask 是否会签
     */
    public void syncDataByScene(List<String> proInstanceIds, List<String> taskIds, String status, String linkStatus, Boolean multiTask) {
        log.info("SyncMultiInstanceProcessTaskProcessor同步待办组件接口入参1proInstanceIds:{},入参2taskIds：{},入参3status：{},入参4linkStatus：{},入参5multiTask：{}", proInstanceIds, taskIds, status, linkStatus, multiTask);
    }
}
